﻿
//
//  Copyright (c) 2011 Extreme: Paweł Huryn (lead), Jakub Domański
//

using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace Extreme.SPFramework.Configuration
{
    /// <summary>
    /// Entity Mapping Configuration
    /// </summary>
    [Serializable]
    public class XmlEntityMappingConfiguration
    {
        /// <summary>
        /// Type of entity
        /// </summary>
        [XmlAttribute]
        public string EntityType { get; set; }

        /// <summary>
        /// List name, urn encoded
        /// </summary>
        [XmlAttribute]
        public string ListName { get; set; }

        /// <summary>
        /// Site url
        /// </summary>
        [XmlAttribute]
        public string SiteUrl { get; set; }

        /// <summary>
        /// Web name
        /// </summary>
        [XmlAttribute]
        public string WebName { get; set; }

        /// <summary>
        /// Property mapings for the list
        /// </summary>
        [XmlElement("PropertyMapping")]
        public List<XmlPropertyMappingConfiguration> PropertyMappings { get; set; }
    }
}
